Skip to content

frontend for twitter implemented#176

Merged
joelamouche merged 1 commit intomainfrom
add-twitter-handle-frontend
Feb 9, 2026
Merged

frontend for twitter implemented#176
joelamouche merged 1 commit intomainfrom
add-twitter-handle-frontend

Conversation

@tusharshah21
Copy link
Collaborator

Add Twitter/X Handle to Frontend Profiles

Closes #173

Changes

Adds Twitter/X handle support to the frontend, mirroring the existing GitHub handle UX exactly.

New file:

  • src/components/ui/XIcon.tsx — X (Twitter) SVG icon component

Type definitions:

  • src/lib/types/api.d.ts — Added twitter_handle to CreateProfileInput and UpdateProfileInput
  • src/lib/types/profiles.d.ts — Added twitterHandle to Profile, twitter_handle to ProfileFromAPI

Display:

  • ProfileHeader — Shows X icon + clickable @handle link (links to https://x.com/{handle})
  • ProfileMain / ProfileActions — Thread twitterHandle prop through component tree

Forms:

  • EditProfileDialog / CreateProfileDialog — Added "Twitter/X Handle" form field with @ prefix, matching GitHub Handle field UX

List view:

  • ProfileCard / ProfilesList — Map and forward twitterHandle from API response

Mock data:

  • profileConstants.ts — Added sample twitterHandle values

Testing

  • Zero TypeScript errors across all modified files
  • Same UX pattern as GitHub handles — icon, link, form field with @ prefix

Copy link
Contributor

@joelamouche joelamouche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice 👍

@joelamouche joelamouche merged commit 3c17a40 into main Feb 9, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add tweeter/X profiles to the front end profiles

2 participants

Comments